<?php

/**
 * auditoria filter form.
 *
 * @package    plagas
 * @subpackage filter
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormFilterTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class auditoriaFormFilter extends BaseauditoriaFormFilter
{
  public function configure()
  {
      $this->widgetSchema['historico'] = new sfWidgetFormChoice(array('choices' => array('' => 'Seleccionar', 1 => 'Si', 0 => 'No')));

      $this->validatorSchema['historico'] = new sfValidatorChoice(array('required' => false, 'choices' => array('', 1, 0)));
  }

//  public function getFields()
//  {
//    $fields = parent::getFields();
//    $fields['historico'] = 'custom';
//
//    return $fields;
//  }
//
//  public function addHistoricoColumnQuery($query, $field, $value)
//  {
////    $text = $value['text'];
////    if($text == 'Si')
////    $query->innerJoin('historico h');
//
//    return $query;
//  }
}
